/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "../components/colors.less";

:global { // DX-11429 TODO reafactor component to use css modules instead fo global classes

  .finder-nav-item {
    a.finder-nav-item-link {
      height: 28px;
      padding: 0 2px 0 10px;

      display: block;
      width: 100%;

      text-decoration: none;
      color: @black;
      cursor: pointer;

      display: flex;
      flex-direction: row;
      align-items: center;

      &:hover, &:focus {
        .pin {
          visibility: visible;
        }
      }
      &.active, &:hover, &:focus {
        background-color: #fff5dc;
      }
    }

    &.readonly{
      opacity: 0.5;
    }

    .pin{
      cursor: pointer;
      visibility: hidden;
      &.active{
        visibility: visible;
        color: @active-icon-dark;
      }
    }

    .fa{
      &.off{
        color: @light-red;
      }
      &.on{
        color: @light-green;
      }
      &.in-border{
        font-size: 10px;
        margin: 0 5px 0 0;
        border: 1px solid #111;
        color: #111;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        width: 14px;
        height: 14px;
        float: left;
        border-radius: 2px;
        line-height: 6px;
      }
    }

    .count {
      color: #c9c9c9;
    }
  }
}
